<div ng-controller="z-employeeImport-c" z-loading is-loading="viewModel.isLoading" >
	<div viewstack class="carousel slide" data-ride="carousel">
			<div class="carousel-inner" role="listbox">
				<div class="item active">
					<div class="row">
	                    <div class="col-lg-12 heading">
	                        <ul id="crumb" class="breadcrumb">
		                       <li>
		                        <i class="im-home"></i>
		                        <a href="index.html">首页</a>
	                        </li>
	                        <li ng-repeat="menu in viewModel.menuList">
	                        	<i class="{{menu.icons}}" ng-if="$index+1!=viewModel.menuList.length"></i>
	                        	<i class="en-arrow-right7" ng-if="$index+1==viewModel.menuList.length"></i>
	                        	{{menu.label}}
	                        </li>
	                        </ul>
	                    </div>
	                </div>
	                <div class="outlet">
		                <div class="panel-body">
		                    <form class="form-horizontal group-border hover-stripped" role="form">
		                        <div class="row">
		                            <div class="col-lg-2 col-md-1">
		                            	<button class="btn btn-info" ng-click="importModel.getTemplate()" tabIndex="1">模板下载</button> 
		                            </div>
		                        </div>
		                    </form>
		                </div>
	                </div>
	              	<div class="outlet">
		                <div class="panel-body">
		                    <div class="row">
		                    	<div class="col-xs-12 col-sm-12 col-md-12 form-box">
	                        	    <div class="col-sm-10 col-md-10 col-lg-10 form-item">
										<div class="col-sm-4 col-md-4 col-lg-4 form-title-left">导入类型：
											&nbsp;<input type="radio" name="eRadio" value="1" ng-model="importModel.radioValue" />覆盖
				                        	&nbsp;<input type="radio" name="eRadio" value="2" ng-model="importModel.radioValue"  ng-checked="2"/>增量
				                        	&nbsp;<input type="radio" name="eRadio" value="3" ng-model="importModel.radioValue"  />架构变更
										</div>
										<div class="col-sm-6 col-md-4 col-lg-3 form-item">
										  <div class="col-sm-5 col-md-5 form-title">生效日期：</div>
										   <div class="col-sm-7 col-md-7 form-input">
											<div class="input-group" ng-class="{ 'has-error' : editForm.effectiveDate.$dirty && editForm.effectiveDate.$invalid }">
												<input name="effectiveDate" 
													   ng-model="importModel.effectiveDate" 
													   ng-change="importModel.dateChange()"
													   class="form-control datetime-picker" 
													   ng-click="importModel.effectiveDateOpen($event)"
													   type="text"
													   autofocus="autofocus" 
													   maxLength="10"
													   z-datepicker-popup="{{importModel.format}}"
													   is-open="importModel.effectiveDateOpnened"
													   datepicker-options="importModel.dateOptions"
												       close-text="Close"
												       required
												       readonly>
												<span class="input-group-addon cursorPointer" ng-click="importModel.effectiveDateOpen($event)"><i class="fa-calendar"></i></span>
											</div>
										   </div>
									    </div>
									</div>
								</div>
								<div class="col-xs-12 col-sm-10 col-md-11 form-box">
				                	<div class="col-sm-12 col-md-4 col-lg-11 form-item">
										<div class="col-sm-7 col-md-7 form-title-left"><span class="glyphicon glyphicon-import"></span>员工信息导入(员工、员工和公司的关系、员工和部门的关系、员工和岗位的关系)：</div>
										<div class="col-sm-5 col-md-5 form-input">
											<div z-Upload 
												 on-Queue-Complete="importModel.fileUploadComplete(fileUrl)"
						                         upload-Stream="importModel.uploadStream"
						                         token-Url="{{baseUrl}}/upload/uploadToken.do"
						                         upload-Url="{{baseUrl}}/upload/upload.do"
						                         multiple-Files=false></div>
										</div>
									</div>
				                </div>
				            </div>
				            <div class="row">
				            	<div ng-if="importModel.messageHideType" class="search-range" style="width: 25%;margin: 0 auto;margin-top: 20px;border-radius: 4px;border-color: #ed5565;background: #fff;">
						            <div class="row">
						                <div class="col-md-12">
						                    <div style="background-color: #ed5565;border-color: #ed5565;color: #ffffff;padding: 0px 15px;">
						                        <h3 class="inline">导入错误：</h3>
						                    </div>
						                </div>
						            </div>
						            <div class="row">
						                <div class="col-md-12" style="padding: 10px 40px 10px 40px;" ng-if="!importModel.isArray">
						                    {{importModel.message}}
						                </div>
						                <div class="col-md-12" style="padding: 10px 40px 10px 40px;" ng-if="importModel.isArray">
						                   <p ng-repeat="msg in importModel.message track by $index">{{msg}}</p>
						                </div>
						            </div>
						        </div>
						        <div ng-if="importModel.successHideType" class="search-range" style="width: 25%;margin: 0 auto;margin-top: 20px;border-radius: 4px;border-color: #1ab394;background: #fff;">
						            <div class="row">
						                <div class="col-md-12">
						                    <div style="background-color: #1ab394;border-color: #1ab394;color: #ffffff;padding: 0px 15px;">
						                        <h3 class="inline">导入成功：</h3>
						                    </div>
						                </div>
						            </div>
							            <div class="row">
							                <div class="col-md-12" style="padding: 10px 40px 10px 40px;" ng-if="!importModel.isArray">
							                    {{importModel.message}}
							                </div>
							                <div class="col-md-12" style="padding: 10px 40px 10px 40px;" ng-if="importModel.isArray">
							                    <p ng-repeat="msg in importModel.message track by $index">{{msg}}</p>
							                </div>
							            </div>
							        </div>
							    </div>
				            <div>
		                </div>
	                </div>
				</div>
			</div>
	</div>
</div>